<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Thêm', true), array('action' => 'add')); ?></li>
	</ul>
</div>
<div class="view">
<h2><?php __('TRẠM BẢO VỆ THỰC VẬT');?></h2>
<p>
<?php
$paginator->options(array('url'=>$this->passedArgs));
echo $paginator->counter(array(
'format' => __('Hiện có %count% mẫu tin - Trang %page%/%pages%', true)
));
?></p>
<table cellpadding="0" cellspacing="0">
<tr>
	
	<th><?php echo $paginator->sort('Chi cục','ChicucBvtv.TEN_CC');?></th>
	<th><?php echo $paginator->sort('Tên trạm','Trambvtv.TEN_TR');?></th>
	<th><?php echo $paginator->sort('Địa chỉ','Trambvtv.DCHI_TR');?></th>
	<th><?php echo $paginator->sort('Số điện thoại','Trambvtv.SDT_TR');?></th>
	<th class="actions"><?php __('HÀNH ĐỘNG');?></th>
</tr>
<?php
$i = 0;
foreach ($trambvtvs as $trambvtv):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
	
		<td>
			<?php echo $trambvtv['ChicucBvtv']['TEN_CC']; ?>
		</td>
		<td>
			<?php echo $trambvtv['Trambvtv']['TEN_TR']; ?>
		</td>
		<td>
			<?php echo $trambvtv['Trambvtv']['DCHI_TR']; ?>
		</td>
		<td>
			<?php echo $trambvtv['Trambvtv']['SDT_TR']; ?>
		</td>
		<td class="actions">
	<!--		<?php echo $html->link(__('Xem', true), array('action' => 'view', $trambvtv['Trambvtv']['id'])); ?> -->
	<?php echo $html->link(__('Xem', true), array('action' => 'view', $trambvtv['Trambvtv']['id'])); ?>
	
	<!--		<?php echo $html->link($html->image('bayden.png', array('alt'=>'Thời tiết')).'<span>Thời tiết</span>', array('controller' => 'thoitiets'), array('escape' => false));?> -->
			<?php echo $html->link(__('Sửa', true), array('action' => 'edit', $trambvtv['Trambvtv']['id'])); ?>
			<?php echo $html->link(__('Xóa', true), array('action' => 'delete', $trambvtv['Trambvtv']['id']), null, sprintf(__('Bạn có chắc muốn xóa # %s?', true), $trambvtv['Trambvtv']['TEN_TR'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('Truớc', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('Sau', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>

